const reducer = (preState= {isShow: true}, action) => {
    const newState = {...preState};
    if (action.type === "hideTab") {
        newState.isShow = false;
        return newState;
    } else if (action.type === "showTab") {
        newState.isShow = true;
        return newState;
    }
    return preState;
}

export default reducer;